<%-- 
    Document   : multiLines
    Created on : Jun 13, 2012, 5:29:37 PM
    Author     : hcl
--%>

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:form action="updateList" method="post">
	<s:iterator value="peopleList" status="stat">
		<s:hidden name="peopleList[%{#stat.index}].id"
			value="%{peopleList[#stat.index].id}" />
		<s:textfield label="Name" name="peopleList[%{#stat.index}].name"
			value="%{peopleList[#stat.index].name}" />
		<s:textfield label="Age" name="peopleList[%{#stat.index}].age"
			value="%{peopleList[#stat.index].age}" />
		<s:textfield label="Height" name="peopleList[%{#stat.index}].height"
			value="%{peopleList[#stat.index].height}" />
		<br />
	</s:iterator>
	<s:submit value="Update" />
	<s:submit value="Add" action="addLine"></s:submit>
</s:form>